package pl.put.augrelshooter.logic.detection.opencv.color;

import org.opencv.core.Scalar;

public class ColorDescription {
	private Scalar color;
	private Scalar radius;

	public ColorDescription(Scalar color, Scalar radius) {
		this.color = color;
		this.radius = radius;
	}

	public Scalar getColor() {
		return color;
	}

	public Scalar getRadius() {
		return radius;
	}

	@Override
	public boolean equals(Object o) {
		boolean result = false;

		if (o instanceof ColorDescription) {
			ColorDescription otherDescriptor = (ColorDescription) o;
			result = (color.equals(otherDescriptor.getColor()) && radius.equals(otherDescriptor.getRadius()));
		}

		return result;
	}
}
